 <div class="comment_toolbar">
       
        	<div class="comment_sort_l"></div>
		<div class="comment_sort_m">
                    <form method="GET" action="<?php echo edp_href_link(PAGENAME_SHOP_INFO); ?>" id="reviewform">
                        <input type="hidden" name="sid" value="<?php echoPageVar($pageVars, 'sid')?>" />
                        <input type="hidden" id="sortby" name="sortby" value="<?php echoPageVar($pageVars, 'sortby')?>" />
			<div class="comment_sort">
				按照
                                <a href="" id="sortflower_count">鲜花数</a> |
                                <a href="" id="sortview_count">回应数</a> |
                                <a href="" id="sortreview_date">点评时间</a> |
                                <a href="" id="sortcontribution">会员等级</a>
                                排序
                                <!--
                                <a href="" title="升序" order="asc"><img src="<?php echo IMAGE_DIR; ?>arrow4.gif" /></a>
                                <a href="" title="降序" order="desc"><img src="<?php echo IMAGE_DIR; ?>arrow5.gif" /></a>
                                -->
			</div>
			<div class="comment_search">
				<input type="text" class="input_1" id="keyword" name="q" value="<?php echoPageVar($pageVars, 'keyword')?>" />
				<input type="submit" class="btn_1" value="搜索点评" />
			</div>
                    </form>
		</div>
		<div class="comment_sort_r"></div>

 </div>

<?php if( isset($pageVars['reviews']) ){?>        
  <div class="comment">
	<?php foreach( $pageVars['reviews'] as $review ) {?>  
      <table border="0" cellspacing="0" cellpadding="0" class="comment_item">
          <tr>
            <td class="userdata_td">
				<div class="userdata">		
					<img src="<?php echo EdpGetAvatarUrl($review['logo_path']); ?>" alt="<?php echoPageVar($review, 'nick'); ?>" width="80" height="80" class="commentUserPhoto" />
					<div class="userID"><a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$review['user_id']);?>"><?php echoPageVar($review, 'nick'); ?></a></div>
					<div class="userRank"><span class="<?php echo getUserRankClass($review['contribution']); ?>"></span></div>
				</div>
            </td>
            <td class="article_comment">
            	<div class="comment_head"></div>
            	<div class="comment_m">
            		<div class="shop_rank"><span class="score<?php echo $review['score']+1; ?>"></span> </div>
                    <table border="0" cellspacing="0" cellpadding="0" class="comment_score">
                      <tr>
                        <td class="cell01">宝贝真实度</td>
                        <td class="cell02"><?php echoPageVar($review, 'reality'); ?></td>
                        <td class="cell01">服务态度</td>
                        <td class="cell02"><?php echoPageVar($review, 'service'); ?></td>
                        <td class="cell01">发货速度</td>
                        <td class="cell02"><?php echoPageVar($review, 'velocity'); ?></td>
                        <td class="cell01">性价比</td>
                        <td class="cell02"><?php echoPageVar($review, 'rate'); ?></td>
                      </tr>
                    </table>
                    <div class="stuff_name">
                    <?php if($review['product_list']){?>
                        <div class="strong">购买的商品：</div>
                        <ul>
                        <?php foreach ($review['product_list'] as $product_info) {?>
							<li class="strong"><a href="<?php echo edp_href_link(PAGENAME_PRODUCT_INFO, 'pid='.$product_info['id']);?>"><?php secho( $product_info['product_name'] ); ?> </a></li>
							<?php }?>
                        </ul>
                       		<?php }?> 
                    </div>
                    <div class="comment_content">
                  		<p>
                                    <?php echo $review['content'];?>

							<a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO,'rid='.$review['id']); ?>">详情&gt;&gt;</a>
						</p>            
                    </div>
		<?php if($review['tags']){?>
                    <ul class="stuff_tag">
                    <li class="strong">标签：</li>
							<?php $count=0; foreach ($review['tags'] as $tag) {?>
								<li><a href="<?php echo edp_href_link(PAGENAME_SHOP_SEARCH_RESULT,'q='.$review['tags_plain'][$count]); ?>"><?php echo $tag; ?></a></li>
							<?php $count++; }
						?>
                    </ul>
                   <?php } 
		?> 
		<?php if($review['pic_list']){?>
                    <ul class="stuff_pic">
                    <li class="strong" style="background: none; padding: 0;">图片：</li>
							<?php foreach ($review['pic_list'] as $pic_info) {?>
								<li class="uploadpic"><a href="<?php echo EdpGetPicURL($pic_info['picture_path']);?>"><?php echo $pic_info['name']; ?></a></li>
                   
		<?php }
			echo ' </ul>';
		}?>
                    <div class="comment_action">
                        <div class="comment_date">发表于 <?php echoPageVar($review, 'review_date'); ?></div>
                        
                        <ul class="comment_btns">
                          
                            <li class="comment_detail"><a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO,'rid='.$review['id']); ?>"></a></li>
                            <li class="comment_reply"><a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO,'rid='.$review['id'].'#reponse_anchor'); ?>"></a><?php if(intval($review['response_count'])>0) echo '<span>('.$review['response_count'].')</span>'; ?></li>
                            <li class="comment_flower"><a id="Flower<?php echo $review['id'];?>" onclick="popupFlowerWindow('review','<?php echo $review['id']; ?>')" href="###"></a><?php if(intval($review['flower_count'])>0) echo '<span id="Flower'.$review['id'].'" >('.$review['flower_count'].')</span>'; ?></li> 
                            <li class="comment_egg"><a id="Egg<?php echo $review['id'];?>" href="###'" onclick="popupEggWindow('review','<?php echo $review['id']; ?>')"></a><?php if(intval($review['egg_count'])>0) echo '<span id="Egg'.$review['id'].'" >('.$review['egg_count'].')</span>'; ?></li>
                            <li class="comment_report"><a href="###" onclick="popupReportWindow('3','<?php echo $review['id']; ?>')"></a></li>
                            
                        </ul>
                        
                    </div>
           		</div>                
         		<div class="comment_foot"></div>
                 
            </td>
          </tr>
      </table>

     <?php } ?>              
   </div>
      	
 <?php
		echoPageVar( $pageVars, "pagebar" );
	}
	else
	{
		if(!isset($pageVars['keyword']))
		{
?>
<center style="margin-top: 20px;"><span style="color: rgb(150, 29, 47); font-size: 14px; font-weight: bold;">立刻发表第一个点评，建立该卖家的口碑记录，并获取E币！</span> <br> </center>

<?php
		}
	}
?>
  
